Programming with OpenSCAD by Justin Gohde & Marius Kintel

Programming with OpenSCAD by Justin Gohde & Marius Kintel

Author:Justin Gohde & Marius Kintel [Justin Gohde]
Language: eng
Format: epub
Publisher: No Starch Press
Published: 2021-08-29T00:00:00+00:00


Building a LEGO Brick

In this section, we’ll walk through a complex modeling project that uses parameters, modules, and for loops in a single design. You’ll design a LEGO brick shape that has two studs in one direction and any number of studs in the other direction. Studs are the small bumps on the top of a LEGO brick that fit into other LEGO bricks to hold them together. Figure 5-3 shows a LEGO brick with two rows and four studs per row.

Figure 5-3: A LEGO brick with a 2×4 grid of studs

Before coding a complicated design like this, sketching a few hand-drawn versions of your shape can help you gain a firm understanding of the dimensions and patterns that exist within the shape (Figure 5-4).

Figure 5-4: A hand-drawn exploration of the dimensions of LEGO bricks of various sizes



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.